{% extends 'base.html' %}
{% import "bootstrap/wtf.html" as wtf %}
{% block page_content %}
    {% block makcoo %}
        <div class="panel panel-info">
            <div class="panel-heading">新增员工

                <button onclick="javascript:history.back()" class="btn btn-xs btn-info pull-right" aria-haspopup="true"
                        aria-expanded="false">
                    <i class="fa fa-undo fa-fw"></i>返回
                </button>
            </div>
            <div class="panel-body">
                <form id="edit-employee-form" class="form form-horizontal form-group-sm" method="post" role="form">
                    {{ form.hidden_tag() }}

                    {{ wtf.form_field(form.name, form_type='horizontal', horizontal_columns=('lg', 2, 9)) }}
                    {{ wtf.form_field(form.phone, form_type='horizontal', horizontal_columns=('lg', 2, 9)) }}
                    {{ wtf.form_field(form.email, form_type='horizontal', horizontal_columns=('lg', 2, 9)) }}
                    {{ wtf.form_field(form.gender, form_type='horizontal', horizontal_columns=('lg', 2, 9)) }}
                    {{ wtf.form_field(form.role_id, form_type='horizontal', horizontal_columns=('lg', 2, 9)) }}
                    {{ wtf.form_field(form.is_locked, form_type='horizontal', horizontal_columns=('lg', 2, 9)) }}
                    {{ wtf.form_field(form.submit, form_type='horizontal', horizontal_columns=('lg', 2, 9)) }}
                </form>
            </div>
        </div>
    {% endblock %}
{% endblock %}